.class Ldata/ShopData$1;
.super Ljava/lang/Object;
.source "ShopData.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Ldata/ShopData;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Ldata/ShopData;

.field private final synthetic val$holder:Ldata/ShopData$MyHolder;


# direct methods
.method constructor <init>(Ldata/ShopData;Ldata/ShopData$MyHolder;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Ldata/ShopData$1;->this$0:Ldata/ShopData;

    iput-object p2, p0, Ldata/ShopData$1;->val$holder:Ldata/ShopData$MyHolder;

    .line 156
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    .line 159
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    .line 160
    .local v0, "id":I
    iget-object v1, p0, Ldata/ShopData$1;->this$0:Ldata/ShopData;

    iget-object v1, v1, Ldata/ShopData;->ls:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/ShopBean;

    invoke-virtual {v1}, Lbean/ShopBean;->getTag()Ljava/lang/String;

    move-result-object v1

    const-string v2, "0"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 162
    iget-object v1, p0, Ldata/ShopData$1;->val$holder:Ldata/ShopData$MyHolder;

    iget-object v1, v1, Ldata/ShopData$MyHolder;->main_item_listview:Landroid/widget/ListView;

    invoke-static {v1}, Lmyapp/MyApp;->seth(Landroid/widget/ListView;)V

    .line 163
    iget-object v1, p0, Ldata/ShopData$1;->val$holder:Ldata/ShopData$MyHolder;

    iget-object v1, v1, Ldata/ShopData$MyHolder;->activityscount:Landroid/widget/TextView;

    iget-object v2, p0, Ldata/ShopData$1;->this$0:Ldata/ShopData;

    iget-object v2, v2, Ldata/ShopData;->c:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f070001

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 164
    iget-object v1, p0, Ldata/ShopData$1;->val$holder:Ldata/ShopData$MyHolder;

    iget-object v1, v1, Ldata/ShopData$MyHolder;->openicon:Landroid/widget/ImageView;

    iget-object v2, p0, Ldata/ShopData$1;->this$0:Ldata/ShopData;

    iget-object v2, v2, Ldata/ShopData;->c:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f020104

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 166
    iget-object v1, p0, Ldata/ShopData$1;->this$0:Ldata/ShopData;

    iget-object v1, v1, Ldata/ShopData;->ls:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/ShopBean;

    const-string v2, "1"

    invoke-virtual {v1, v2}, Lbean/ShopBean;->setTag(Ljava/lang/String;)V

    .line 175
    :goto_0
    return-void

    .line 168
    :cond_0
    iget-object v1, p0, Ldata/ShopData$1;->val$holder:Ldata/ShopData$MyHolder;

    iget-object v1, v1, Ldata/ShopData$MyHolder;->activityscount:Landroid/widget/TextView;

    iget-object v2, p0, Ldata/ShopData$1;->this$0:Ldata/ShopData;

    iget-object v2, v2, Ldata/ShopData;->c:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f07000d

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 169
    iget-object v1, p0, Ldata/ShopData$1;->val$holder:Ldata/ShopData$MyHolder;

    iget-object v1, v1, Ldata/ShopData$MyHolder;->openicon:Landroid/widget/ImageView;

    iget-object v2, p0, Ldata/ShopData$1;->this$0:Ldata/ShopData;

    iget-object v2, v2, Ldata/ShopData;->c:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0200d9

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 171
    iget-object v1, p0, Ldata/ShopData$1;->val$holder:Ldata/ShopData$MyHolder;

    iget-object v1, v1, Ldata/ShopData$MyHolder;->main_item_listview:Landroid/widget/ListView;

    invoke-static {v1}, Ldata/ShopData;->seth2(Landroid/widget/ListView;)V

    .line 173
    iget-object v1, p0, Ldata/ShopData$1;->this$0:Ldata/ShopData;

    iget-object v1, v1, Ldata/ShopData;->ls:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/ShopBean;

    const-string v2, "0"

    invoke-virtual {v1, v2}, Lbean/ShopBean;->setTag(Ljava/lang/String;)V

    goto :goto_0
.end method
